<template>
  <div>
    <h3>Right组件</h3>
    <p ref="abc">这是right组件</p>
    <button @click="show">点击</button>
  </div>
</template>

<script>
  export default{
    methods: {
        show(){
          console.log(this.$refs.abc.innerHTML);  
        }
    },
  }
</script>

<style lang="less" scoped>
h3 {
  color:burlywood;
}
</style>